<!-- messages -->
{if $messages}
<div id="messages" class="errorDiv">
	{foreach from=$messages item=message}
		{foreach from=$message.message item=_m}
			<div style="width:100%" {if $message.type=='error'}class="alert"{else}class="green"{/if}>{$_m}</div>
		{/foreach}
	{/foreach}
</div>
{/if}
